package rbtree;

public class Test {
    public static void main(String[] args) {
        int[] arr={4,2,6,1,3,5,15,7,16,14};
        RBTree rbTree = new RBTree();
        for (int i = 0; i < arr.length; i++) {
            rbTree.insert(arr[i]);
        }
        System.out.println(rbTree.isRBTree());
        rbTree.inorder(rbTree.root);
    }
}
